package com.ts.api.module.channel.service.impl;

import com.ts.api.module.channel.dao.ChannelLogDao;
import com.ts.api.module.channel.entity.po.ChannelLogPO;
import com.ts.api.module.channel.service.ChannelLogService;

import java.time.LocalDateTime;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChannelLogImpl implements ChannelLogService {

    @Autowired
    private ChannelLogDao channelLogDao;

    @Override
    public int insert(ChannelLogPO po) {
        po.setCreateTime(LocalDateTime.now());
        return channelLogDao.insert(po);
    }

    @Override
    public ChannelLogPO findOne(ChannelLogPO qo) {
        return channelLogDao.findOne(qo);
    }

}
